import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/home',
    name: 'home',
    component: () => import('../views/home.vue')
  },
  {
    path: '/readme',
    name: 'readme',
    component: () => import('../views/readme/index.vue')
  },
  {
    path: '/scrollbar',
    name: 'scrollbar',
    component: () => import('../views/scroll/scrollbar.vue')
  },
  {
    path: '/e2e_down',
    name: 'e2e_down',
    component: () => import('../views/DownExcel/e2e_down.vue')
  },
  {
    path: '/comdialog',
    name: 'comdialog',
    component: () => import('../views/dialog/index.vue')
  },
]

const router = new VueRouter({
  routes
})

export default router
